package com.rdgzs.authority.entity;



import java.util.Date;

import com.rdgzs.base.utils.BizConstants;
import com.rdgzs.framework.utilsTools.DateTimeUtils;
/**
* ###################################################
* @创建日期：2014-3-4 18:01:08
* @开发人员：李广彬
* @功能描述：
* @修改日志：
* ###################################################
*/
public class User implements java.io.Serializable {
		private String id; //主键
		private Integer optimistic; //乐观锁
		private Date createTime; //创建时间
		private String createTimeStr;//[附加属性]创建时间 
		private Date modifyTime; //修改时间
		private String modifyTimeStr;//[附加属性]修改时间 
		private Date lastLoginTime; //最后登陆时间
		private String lastLoginTimeStr;//[附加属性]最后登陆时间 
		private String lockUser; //锁定用户操作人
		private Integer loginNum; //登陆次数
		private String empId; //员工ID
		private String onlineFlag; //在线标志
		private String salt; //密码 加密时的盐值
		private String password; //密码
		private String mobile; //手机
		private String email; //邮箱
		private String account; //账号
		private String company; //公司名称或ID
		private String showname; //显示名称
		private String userType; //用户类型
		private String validFlag=BizConstants.ENABLED; //有效标志
		private String status; //状态
		private String startTime;//[附加属性]开始时间
		private String endTime;//[附加属性]结束时间
	
		/** default constructor */
		public User() {
		}
	
		public String getId() {
			return this.id;
		}
	
		public void setId(String id) {
			this.id = id;
		}
		
		public Integer getOptimistic() {
			return this.optimistic;
		}
	
		public void setOptimistic(Integer optimistic) {
			this.optimistic = optimistic;
		}
		
		public String getCreateTimeStr() {
			return this.createTime!=null?DateTimeUtils.dateTimeToStrDefault(this.createTime):"";
		}
		
		public Date getCreateTime() {
			return this.createTime;
		}
	
		public void setCreateTime(Date createTime) {
			this.createTime = createTime;
			this.createTimeStr=this.getCreateTimeStr();
		}
		
		public String getModifyTimeStr() {
			return this.modifyTime!=null?DateTimeUtils.dateTimeToStrDefault(this.modifyTime):"";
		}
		
		public Date getModifyTime() {
			return this.modifyTime;
		}
	
		public void setModifyTime(Date modifyTime) {
			this.modifyTime = modifyTime;
			this.modifyTimeStr=this.getModifyTimeStr();
		}
		
		public String getLastLoginTimeStr() {
			return this.lastLoginTime!=null?DateTimeUtils.dateTimeToStrDefault(this.lastLoginTime):"";
		}
		
		public Date getLastLoginTime() {
			return this.lastLoginTime;
		}
	
		public void setLastLoginTime(Date lastLoginTime) {
			this.lastLoginTime = lastLoginTime;
			this.lastLoginTimeStr=this.getLastLoginTimeStr();
		}
		
		public String getLockUser() {
			return this.lockUser;
		}
	
		public void setLockUser(String lockUser) {
			this.lockUser = lockUser;
		}
		
		public Integer getLoginNum() {
			return this.loginNum;
		}
	
		public void setLoginNum(Integer loginNum) {
			this.loginNum = loginNum;
		}
		
		public String getEmpId() {
			return this.empId;
		}
	
		public void setEmpId(String empId) {
			this.empId = empId;
		}
		
		public String getOnlineFlag() {
			return this.onlineFlag;
		}
	
		public void setOnlineFlag(String onlineFlag) {
			this.onlineFlag = onlineFlag;
		}
		
		public String getSalt() {
			return this.salt;
		}
	
		public void setSalt(String salt) {
			this.salt = salt;
		}
		
		public String getPassword() {
			return this.password;
		}
	
		public void setPassword(String password) {
			this.password = password;
		}
		
		public String getMobile() {
			return this.mobile;
		}
	
		public void setMobile(String mobile) {
			this.mobile = mobile;
		}
		
		public String getEmail() {
			return this.email;
		}
	
		public void setEmail(String email) {
			this.email = email;
		}
		
		public String getAccount() {
			return this.account;
		}
	
		public void setAccount(String account) {
			this.account = account;
		}
		
		public String getCompany() {
			return this.company;
		}
	
		public void setCompany(String company) {
			this.company = company;
		}
		
		public String getShowname() {
			return this.showname;
		}
	
		public void setShowname(String showname) {
			this.showname = showname;
		}
		
		public String getUserType() {
			return this.userType;
		}
	
		public void setUserType(String userType) {
			this.userType = userType;
		}
		
		public String getValidFlag() {
			return this.validFlag;
		}
	
		public void setValidFlag(String validFlag) {
			this.validFlag = validFlag;
		}
		
		public String getStatus() {
			return this.status;
		}
	
		public void setStatus(String status) {
			this.status = status;
		}
		
		public String getStartTime() {
	        return startTime;
	    }
	
	    public void setStartTime(String startTime) {
	        this.startTime = startTime;
	    }
	
	    public String getEndTime() {
	        return endTime;
	    }
	
	    public void setEndTime(String endTime) {
	        this.endTime = endTime;
	    }
}